package com.qst.Bianchang;

public class Test {
    public void add(int a,int... b){
        int c = a;
        for(int s:b){
            c += s;
        }
        System.out.println(c);
    }
    @org.junit.Test
    public void canshu() {
       Test test = new Test();
       test.add(1,2,3,4,5,6);
    }
}
